//
//  LFNavgitionBar.h
//  College
//
//  Created by LF on 2018/11/16.
//  Copyright © 2018 MuXi. All rights reserved.
//

#import "LFBaseView.h"

#define KImgWH 25

typedef enum : NSUInteger {
    NavTypeTitle,
    NavTypeLeftTitle,
    NavTypeRi,
} NavType;

// 成功
typedef void (^Action)();
@interface LFNavigationBar : LFBaseView

@property (nonatomic, strong) UIView *statusBar; /**< 状态栏 */
@property (nonatomic, strong) UIView *contentView; /**< 导航栏 */
@property (nonatomic, strong) UIView *titleView;

@property (nonatomic, strong) UIImage *leftImage;
@property (nonatomic, strong) UIImage *rightImage;
@property (nonatomic, strong) UIColor *bgColor;
@property (nonatomic, copy) NSString *title;
@property (nonatomic, copy) NSString *leftTitle;
@property (nonatomic, copy) NSString *rightTitle;
@property (nonatomic, copy) NSString *leftImageName;
@property (nonatomic, copy) NSString *rightImageName;
@property (nonatomic, assign) CGSize leftSize;
@property (nonatomic, assign) CGSize rightSize;
@property (nonatomic, assign) CGFloat marginLeft;
@property (nonatomic, assign) CGFloat marginRight;

// 事件
@property (nonatomic, copy) Action leftAction;
@property (nonatomic, copy) Action rightAction;

// 左右items
@property (nonatomic, strong) NSArray *leftItems;
@property (nonatomic, strong) NSArray *rightItems;

/**
 *  没传用60
 */
@property (assign, nonatomic) CGFloat rightButtonLength;


#pragma mark - initionlize
// 单标题
- (instancetype)initWithTitle:(NSString *)title;

// 右字
- (instancetype)initWithTitle:(NSString *)title rightTitle:(NSString *)rightTitle leftAction:(Action)leftAction rightAction:(Action)rightAction;
- (instancetype)initWithTitle:(NSString *)title rightTitle:(NSString *)rightTitle rightAction:(Action)rightAction;
// 左图  右字
- (instancetype)initWithTitle:(NSString *)title leftImage:(id)leftImage rightTitle:(NSString *)rightTitle leftAction:(Action)leftAction rightAction:(Action)rightAction;
// 左图
- (instancetype)initWithTitle:(NSString *)title leftImage:(id)leftImage leftAction:(Action)leftAction;
// 左图  右图
- (instancetype)initWithTitle:(NSString *)title leftImage:(id)leftImage rightImage:(UIImage *)rightImage leftAction:(Action)leftAction  rightAction:(Action)rightAction;

@end
